import { web } from "@/utils/request"

export function getRoomStatistics() {
    const responseData = web.get("/room/getRoomStatistics");
    return responseData;
}

export function getRoomDetailInfoList() {
    const responseData = web.get("/room/queryRoomDetailInfoList");
    return responseData;
}

export function checkOut(param: {
    roomId:number
}) {
    const responseData = web.post("/room/guestCheckOut", param)
    return responseData;
}

export function updateRoomStatus(param: {
    roomId: number,
    roomStatus: number,
}) {
    const responseData = web.post("/room/updateRoomStatus", param);
    return responseData;
}

export function finishedCleanStatus(param: {
    roomId: number
}) {
    const responseData = web.post("/room/finishedCleanStatus", param);
    return responseData;
}

export function cancelOrder(param: {
    roomId: number
}) {
    const responseData = web.post("/room/cancelOrder", param);
    return responseData;
}

export function queryRoomGuestInfo(param:number) {
    const responseData = web.get(`/room/queryRoomGuestInfo/${param}`);
    return responseData;
}
/* eslint-disable */
export function checkInUser(param:any) {
    const responseData = web.post(`/room/checkInUser`, param);
    return responseData;
}